module dogre.entity;

import dogre.movableobject;
import dogre.resourcegroupmanager;
import dogre.internals.utils;
import std.string;

extern(C)
{
    void call_setMaterialName(void* ptr, const(char)* name, const(char)* groupName);
    void call_setCastShadows(void* ptr, bool enabled);
}

class Entity : MovableObject
{
    mixin(Wrapper);
	~this(){ }
    
    void setMaterialName(string name, string groupName = ResourceGroupManager.AUTODETECT_RESOURCE_GROUP_NAME)
    {
        call_setMaterialName(p, toStringz(name), toStringz(groupName));
    }
    
    void setCastShadows(bool enabled)
    {
        call_setCastShadows(p, enabled);
    }
}
